package com.security.door.core.dao.query;

import lombok.Data;

@Data
public class Order {
    public enum OrderType {
        asc("asc"), desc("desc");

        private String value;

        OrderType(String value) {
            this.value = value;
        }

        @Override
        public String toString() {
            return value;
        }
    }

    private String key;
    private OrderType orderType;

    public Order() {
    }

    public Order(String key, OrderType orderType) {
        this.key = key;
        this.orderType = orderType;
    }
}